package com.qqtech.qquan.circle.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.user.enums.UserConst;

@SuppressWarnings("serial")
public class CircleApplyVo extends CircleApply{
	
	/**圈友名称**/
	private java.lang.String applyerName;
	public java.lang.String getApplyerName() {
		return applyerName;
	}
	public void setApplyerName(java.lang.String applyerName) {
		this.applyerName = applyerName;
	}
	public java.lang.String getApplyerImg() {
		return applyerImg;
	}
	public void setApplyerImg(java.lang.String applyerImg) {
		this.applyerImg = applyerImg;
	}
	public java.lang.String getCircleName() {
		return circleName;
	}
	public void setCircleName(java.lang.String circleName) {
		this.circleName = circleName;
	}
	/**圈友头象**/
	private java.lang.String applyerImg;
	
	/**所在圈子名称**/
	private java.lang.String circleName;
	
	
	/**
	 * 申请人头像全URL
	 * example: http://192.168.1.xxx:8080/circle/1.png
	 * @return
	 */
	public java.lang.String getFullApplyerImg() {
		if(StringUtil.isBlank(this.getApplyerImg())){
			return "";
		}else if(this.getApplyerImg().indexOf("source://")>-1){
			return this.getApplyerImg();
		} else{
			return super.getImgHandleDomain()+""+this.getApplyerImg()+""+UserConst.IMG_POSTFIX;
		}
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}